package com.ccrfid.rmc6.appconfig.exception.pojo;

public enum CustomErrors {
    unknown_error(999, "未知错误"),
    ip_conflict(1000, "IP地址已被占用"),
    different_args(1001, "请求参数不一致"),
    resource_not_found(1002, "资源不存在"),
    sn_conflict(1003, "自定义编号被占用"),
    card_number_conflict(1004, "标签编号已被占用"),
    locator_address_conflict(1005, "定位器地址已被占用"),
    reader_address_conflict(1006, "阅读器编号已被占用"),
    id_number_conflict(1007, "身份证号已被占用"),
    account_conflict(1008, "账号已被占用"),
    pid_not_found(1009, "父节点不存在"),
    role_name_conflict(1010, "角色名称已被占用"),
    param_is_null(1011, "请求参数为空"),
    image_too_large(1012, "上传图片过大"),
    person_not_found(1013, "人员不存在"),
    person_already_binded(1014, "人员已存在绑定标签"),
    card_not_found(1015, "标签不存在"),
    card_already_binded(1016, "标签已被其它资源绑定"),
    different_person_card(1017, "人员-标签不匹配"),
    client_not_found(1018, "客户端连接异常"),
    person_not_bind_card(1019, "人员未绑定标签"),
    person_not_located(1020, "人员未被定位"),
    org_not_found(1021, "机构不存在"),
    person_sn_is_null(1022, "人员编号不能为空"),
    unifo_is_null(1023, "人员番号不能为空"),
    org_type_mistake(1025, "机构类型不匹配"),
    person_type_mistake(1026, "人员类型不匹配"),
    unifo_conflict(1027, "人员番号已被占用"),
    location_not_found(1028, "区域不存在"),
    account_not_fount(1029, "账号未注册"),
    account_disabled(1030, "账号未启用"),
    password_mistake(1031, "密码错误"),
    prisonId_not_found(1032, "监所编号不存在"),
    person_name_is_null(1033, "人员姓名不能为空"),
    name_acronym_is_null(1034, "姓名拼音缩写不能为空"),
    org_sn_is_null(1035, "机构编号不能为空"),
    org_sn_conflict(1036, "机构编号已被占用"),
    camera_sn_conflict(1037, "摄像头编号已被占用"),
    patrol_group_not_found(1038, "巡控组编号有错误"),
    patrol_time_range_not_found(1039, "巡控时段编号有错误"),
    alarm_notify_strategy_name_is_null(1040, "告警通知策略名称不能为空"),
    enabled_is_null(1041, "启用/停用状态不能为空"),
    resource_conflict(1042, "资源重复添加"),
    parent_node_not_catalog(1043, "父节点不是目录类型"),
    place_name_is_null(1044, "地点名称为空"),
    node_type_is_null(1045, "节点类型为空"),
    alarm_level_is_null(1046, "告警级别不能为空"),
    alarm_type_is_null(1047, "告警类型不能为空"),
    asset_name_is_null(1048, "资产名称不能为空"),
    asset_sn_conflict(1049, "资产编号已被占用"),
    asset_already_binded(1050, "资产已存在绑定标签"),
    different_asset_card(1051, "资产-标签不匹配"),
    password_is_null(1052, "密码不能为空"),

    vehicle_not_found(1053, "车辆不存在"),
    tool_case_not_found(1054, "工具箱不存在"),
    tool_not_found(1055, "工具不存在"),

    check_group_name_is_null(1056, "巡查组名称为空"),
    check_group_not_found(1057, "巡查组不存在"),
    check_point_number_is_null(1058, "巡查点标签号为空"),
    check_point_name_is_null(1059, "巡查点名称为空"),
    check_point_not_found(1060, "巡查点不存在"),
    parent_not_node_type(1061, "父节点不是节点类型"),
    check_point_card_number_conflict(1062, "巡查点定位标签编号重复"),

    bed_sn_not_found(1063, "床位不存在"),
    bed_sn_conflict(1064, "床位编号冲突"),
    bed_sn_is_null(1065, "床位编号不能为空"),
    bed_row_col_err(1066, "床位行列位置信息异常"),
    mattress_sn_conflict(1067, "智能床垫编号冲突"),

    mutual_group_name_is_null(1068, "互监组名称不能为空"),

    door_in_locator_is_null(1069, "二道门内定位器地址不能为空"),
    door_out_locator_is_null(1070, "二道门外定位器地址不能为空"),
    door_org_id_is_null(1071, "二道门关联机构不能为空"),
    door_id_not_found(1072, "二道门不存在"),
    in_out_type_is_null(1073, "带入/带出类型不能为空"),
    door_in_out_record_id_not_found(1074, "二道门带入/带出记录不存在"),
    door_in_out_record_error(1075, "二道门带入/带出记录ID有误"),
    door_in_out_locator_conflict(1076, "二道门内/外定位器地址冲突"),

    group_name_is_null(1077, "分组名称不能为空"),
    org_id_is_null(1078, "机构信息不能为空"),
    location_id_is_null(1079, "区域信息不能为空"),
    schedule_time_is_null(1080, "点名计划时间不能为空"),
    org_or_location_is_null(1081, "机构信息、区域信息不能为空"),
    org_group_not_found(1082, "机构分组不存在"),
    location_group_not_found(1083, "区域分组不存在"),

    check_np_group_name_is_null(1092,"巡更组名不能为空"),
    check_np_start_patrol_place_is_null(1093,"巡更起点区域不能为空"),
    check_np_end_patrol_place_is_null(1094,"巡更终点区域不能为空"),
    check_np_start_time_is_null(1095,"巡更开始时间不能为空"),
    check_np_end_time_is_null(1096,"巡更结束时间不能为空"),
    check_np_time_length_is_null(1097,"巡更间隔时间不能为空"),
    check_np_group_name_is_used(1098,"巡更组名已存在"),
    ip_is_different(1099,"ip不匹配"),
    type_already_hava(1100,"已存在该标签"),
    name_conflict(1101,"名称已被占用"),

    patrol_road_name_is_null(1102,"巡更路线名称为空"),
    personnel_id_is_null(1103, "人员ID不能为空"),
    min_heartrate_is_null(1104, "最低心率不能为空"),
    max_heartrate_is_null(1105, "最高心率不能为空"),
    min_diastolic_pressure_is_null(1106, "最低舒张压不能为空"),
    max_diastolic_pressure_is_null(1107, "最高舒张压不能为空"),
    min_systolic_pressure_is_null(1108, "最低收缩压不能为空"),
    max_systolic_pressure_is_null(1109, "最高收缩压不能为空"),
    min_temperature_is_null(1110, "最低体温不能为空"),
    max_temperature_is_null(1111, "最高体温不能为空"),
    ;

    private final int code;
    private final String reason;

    CustomErrors(final int code, final String reason) {
        this.code = code;
        this.reason = reason;
    }

    public int getCode() {
        return code;
    }

    public String getReason() {
        return reason;
    }

    @Override
    public String toString() {
        return '{' +
                "code=" + code +
                ", reason='" + reason + '\'' +
                '}';
    }
}
